﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using AiXiu.Model;

namespace AiXiu.IBLL
{
    public interface ILikeBLL
    {
        /// <summary>
        /// 判断用户是否已经点赞过该视频
        /// </summary>
        /// <param name="UserId">用户Id</param>
        /// <returns></returns>
        int IsLike(int UserId);

        /// <summary>
        /// 获取这条视频点赞的人数
        /// </summary>
        /// <returns></returns>
        long LikeCount();

        /// <summary>
        /// 点赞功能，实现点赞或取消点赞
        /// </summary>
        /// <param name="UserId">用户Id</param>
        /// <returns>操作结果类，返回true为点赞，返回false为取消点赞</returns>
        OperResult<bool> AddOrRemoveLike(int UserId);
    }
}
